package com.xsp.service;

import com.xsp.dao.BookInfoMapper;
import com.xsp.entity.BookInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;

/**
 * @author xsp
 * @date 2024/1/17
 * @desc
 */
public class BookInfoService2 {
    private BookInfoMapper bookInfoMapper;

    public void setBookInfoMapper(BookInfoMapper bookInfoMapper) {
        this.bookInfoMapper = bookInfoMapper;
    }

    public void addBook(BookInfo bookInfo) {
        bookInfoMapper.insert(bookInfo);
    }
}
